package com.cauli.file.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Cauli
 * @date 2023-03-18 12:00
 * @description 分享
 */
@Data
@TableName("share")
@ApiModel(value = "Share", description = "分享")
public class Share implements Serializable {
    /**
     * 分享ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("share_id")
    private Long shareId;

    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField
    private Long userId;

    /**
     * 分享时间
     */
    @TableField
    private String shareTime;

    /**
     * 失效时间
     */
    @TableField
    private String endTime;

    /**
     * 提取码
     */
    @TableField
    private String extractionCode;

    /**
     * 分享批次号
     */
    @TableField
    private String shareBatchNum;

    /**
     * 分享类型(0公共 1私密)
     */
    @TableField
    private Integer shareType;

    /**
     * 分享状态(0正常 1已失效 2已撤销)
     */
    @TableField
    private Integer shareStatus;
}
